import React, { Component } from 'react'

export default class CartTotal extends Component {
  render() {
    let { allChecked, allPrice, selectNum } = this.props;
    return (
      <div className="cartTotal">
        全选：<input type="checkbox" checked={allChecked} onChange={(e) => {
          console.log('e.target.checked', e.target.checked);

          this.props.selectAll(e.target.checked)
        }} /> 总价: {allPrice}  选中: {selectNum}  <button>去结算</button>
      </div>
    )
  }
}

